<?php
/**
 * CreateUser: zlh
 * CreateTime: 2022/1/25 10:59
 * Remark:
 */

namespace App\Http\Requests\Position;

use App\Http\Requests\BaseRequests;

class SelectPositionGet extends BaseRequests
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'department_id' => "required",
        ];
    }

    public function messages()
    {
        return [
            'department_id.required' => "部门不能为空",
        ];
    }
}